package com.fofia.iotweb.web.dbdomain.models.admin;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(value = "sys_user")
public class SysUser implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.None)
    private long id;
    @Column(value = "login_name")
    private String loginName;

    @Column(value = "pass_word")
    private String passWord;

    @Column(value = "user_name")
    private String userName;

    @Column(value = "mobile_phone")
    private String mobilePhone;

    @Column(value = "email")
    private String email;

    @Column(value = "is_super")
    private int isSuper;

    @Column(value = "user_status")
    private int userStatus;

    @Column(value = "role_id")
    private long roleId;

    @Column(value = "dept_id")
    private int deptId;

    @Column(value = "del_flag")
    private int delFlag;

    @Column(value = "gender")
    private int gender;
    @Column(value = "user_avatar")
    private String userAvatar;

    @Column(value = "remark")
    private String remark;

    @Column(value = "create_by")
    private String createBy;

    @Column(value = "create_time")
    private Date createTime;

    @Column(value = "update_by")
    private String updateBy;

    @Column(value = "update_time")
    private Date updateTime;

    //忽略字段
    @Column(ignore=true)
    private String roleName;

    @Column(ignore=true)
    private String deptName;
}
